/* 认证页面通用样式 */

/* 新增logo链接样式 */
.logo-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.logo-link:hover {
    color: #ff5722;
    transform: scale(1.05);
}

/* 新增返回首页链接样式 */
.home-link {
    margin-left: 20px;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s;
}

.home-link:hover {
    background-color: #ff5722;
    color: white !important;
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .logo-container {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }

    .sub-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sub-nav a {
        margin: 5px;
        padding: 5px;
    }

    .home-link {
        margin-left: 0;
        order: 3;
        width: 100%;
        text-align: center;
    }
}

.auth-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.auth-card h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #ff5722;
    outline: none;
}

.error-message {
    color: #ff5722;
    font-size: 12px;
    height: 18px;
    margin-top: 4px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    background-color: #ff4500;
    transform: scale(1.02);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #ff5722;
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.sub-nav .active {
    color: #ff5722 !important;
    border-bottom: 2px solid #ff5722;
}